package com.qp.basics.common.domain;

import com.qp.basics.common.annotation.FiledColumnInfo;
import com.qp.basics.common.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 系统配置。
 */
@Entity
@Data
public class SysConfig extends BaseEntity implements Serializable {
    @Id
    @NotNull(groups = Update.class)
    @ApiModelProperty(value = "ID", hidden = true)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    /**模块名称*/
    @FiledColumnInfo(queryType = "like",formType = "Select",dictName="SysModules")
    private String category;
    /**配置名称*/
    @FiledColumnInfo(queryType = "like")
    private String itemName;
    /**
     * 编辑类型。
     * 如何编辑，比如文本框，比如上传附件之类的。
     * */
    @FiledColumnInfo(queryType = "like",formType = "Select",dictName="SysConfigEditTypes")
    private String editType;
    /**配置值*/
    @FiledColumnInfo(queryType = "like")
    private String itemValue;
    /**配置值2*/
    @FiledColumnInfo(queryType = "like")
    private String itemValue2;
    /**配置值3*/
    @FiledColumnInfo(queryType = "like")
    private String itemValue3;
    /**描述*/
    @FiledColumnInfo(queryType = "like")
    private String description;
}
